<form action="index.php?action=suathongtincanhan_xuly" method="POST">
	<table class="SuaThongTin" width="100%">
		<tr>
		<th colspan="2">
			Cập nhật thông tin cá nhân
		</th>
	</tr>
		<tr>
			<td class="InfoCol1">
				Tên đăng nhập
			</td>
			<td>
				<input type="text" readonly="readonly" name="TenDangNhap" value="<?php if (isset($_SESSION['ThongTinNguoiDung'])) echo $_SESSION['ThongTinNguoiDung']['TenDangNhap'];?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Loại thành viên
			</td>
			<td>
				<input type="text" readonly="readonly" name="LoaiThanhVien" value="<?php
					if (isset($_SESSION['TenLoaiNguoiDung']))
						echo $_SESSION['TenLoaiNguoiDung'];?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Họ và tên
			</td>
			<td>
				<input type="text" name="HoTen" value="<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
						echo $_SESSION['ThongTinNguoiDung']['HoTen'];?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Địa chỉ
			</td>
			<td>
				<input type="text" name="DiaChi" value="<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
						echo $_SESSION['ThongTinNguoiDung']['DiaChi'];?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Điện thoại
			</td>
			<td>
				<input type="text" name="DienThoai" value="<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
						echo $_SESSION['ThongTinNguoiDung']['DienThoai'];?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Giới tính
			</td>
			<td>
				<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
					{
						$GT = $_SESSION['ThongTinNguoiDung']['GioiTinh'];
						?>
						<input id="GTNam" type="radio" name="GioiTinh" <?php if($GT == 1) echo "checked=\"checked\"";?> value="1"/>
						<label for="GTNam">Nam</label>
						<input id="GTNu" type="radio" name="GioiTinh" <?php if($GT == 0) echo "checked=\"checked\"";?> value="0"/>
						<label for="GTNu">Nữ</label>
						<?php
					}
				?>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Email
			</td>
			<td>
				<input type="text" name="Email" value="<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
						echo $_SESSION['ThongTinNguoiDung']['Email'];?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Ngày sinh
			</td>
			<td>
				<input type="text" id="datepicker" name="NgaySinh" value="<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
					{
						include_once "classes/thuvienham.php";
						echo HienThiNgayTheoChuanVietNam($_SESSION['ThongTinNguoiDung']['NgaySinh']);
					}?>"/>
			</td>
		</tr>
		<tr>
			<td class="InfoCol1">
				Ngày tham gia
			</td>
			<td>
				<input type="text" readonly="readonly" name="NgayThamGia" value="<?php
					if (isset($_SESSION['ThongTinNguoiDung']))
					{
						include_once "classes/thuvienham.php";
						echo HienThiNgayTheoChuanVietNam($_SESSION['ThongTinNguoiDung']['NgayThamGia']);
						
					}?>"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input class="btn_submit" type="submit" value="Xác nhận" />
			</td>
		</tr>
	</table>
</form>